function CommonPlugins(Vue) {
  Vue.mixin({
    methods: {
      getPageQuery() {
        return this.$mp.query
      },
      $pushRoute(url) {
        wx.navigateTo({url})
      },
      $replaceRoute(url) {
        wx.reLaunch({url})
      }
    }
  })
}

export default CommonPlugins
